package Manger;

import javax.xml.transform.Result;
import java.sql.*;

public class jdbc {
    public final static String driver = "com.mysql.cj.jdbc.Driver";
    public boolean found = false;
    private static final String url = "jdbc:mysql://172.19.75.195:3306/tcms?useUnicode=true&characterEncoding=utf8&useSSL=false";
    private static final String pwd = "bw040914";
    private static final String user = "root";

    static {
        try {
            Class.forName(driver);
        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        }
    }

    public static Connection getConn() {
        try {
            return DriverManager.getConnection(url, user, pwd);
        } catch (SQLException e) {
            e.printStackTrace();
            return null;
        }
    }
}

